package com.robusta.app.auth.persistence;

import com.robusta.app.auth.model.UserModel;

public interface UserRepository {
    /**
     * Find a User Model what matches the login name and encoded password.
     * @param loginName String
     * @param encodedPassword String
     * @return User
     * @throws javax.persistence.NoResultException when verification of credentials fails.
     */
    UserModel lookupUserByCredentials(String loginName, String encodedPassword);
}
